﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Data.SqlClient;
using System.Data.Common;
using System.Configuration;

namespace tjb.WebTest.Connections
{
    public partial class connstrTEST : System.Web.UI.Page
    {
        public const string connName = "ConnString1";
        protected void Page_Load(object sender, EventArgs e)
        {
            SqlConnectionStringBuilder Csb = null;

            ConnectionStringSettings css = System.Configuration.ConfigurationManager.ConnectionStrings[connName];


            Csb = new SqlConnectionStringBuilder(css.ConnectionString);
            Csb.Encrypt = true;
            //  SqlConnectionStringBuilder t = new SqlConnectionStringBuilder();
            string m = Csb.ConnectionString;
        }
    }
}
